<#assign assign_EntityName = content.items.entity.className>
<#assign tableName = content.content.tableName>
<#assign tableRemark = content.content.remark>
<#assign camelName = content.content.camelName>
package ${content.items.dao.packageName};
import ${content.items.entity.packageName}.${assign_EntityName};
import java.util.Map;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
 * ${tableName}${tableRemark}表数据库操作
 * @author liuyandeng
 */
@Mapper
public interface ${content.items.dao.className} {
    //获取${tableRemark}列表
    List<${assign_EntityName}> getList(@Param("queryMap")Map<String, String> queryMap, @Param("start") Integer start, @Param("size")Integer size);
    //获取${tableRemark}列表
    List<${assign_EntityName}> getList(@Param("queryMap") Map<String, String> queryMap);
   <#if content.content.primaryField??>
   <#assign assign_idFieldType = content.content.primaryField[0].fieldType>
   <#assign assign_idFieldName = content.content.primaryField[0].fieldName>
    //获取${tableRemark}详情
    ${assign_EntityName} get(@Param("${assign_idFieldName}")${assign_idFieldType} ${assign_idFieldName});
   </#if>
    //查询${tableRemark}数量
    Integer getCount(@Param("queryMap")Map<String, String>  queryMap);
    //新增${tableRemark}
    Integer insert(${assign_EntityName} ${camelName});
    //更新${tableRemark}
    Integer update(${assign_EntityName} ${camelName});
    //删除${tableRemark}
    Integer delete(@Param("${assign_idFieldName}")${assign_idFieldType} ${assign_idFieldName});
}
